package com.yisu.auction.api.core.service.impl;

import com.yisu.auction.api.core.mapper.BalanceLogMapper;
import com.yisu.auction.api.core.service.IBalanceLogService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;

/**
 * author: 赵杰
 * Business Description：
 * createTime：2017/9/7
 */
@Service("IBalanceLogService")
public class BalanceLogServiceImpl implements IBalanceLogService{
    @Resource
    private BalanceLogMapper balanceLogMapper;
    /**
     * author: 赵杰
     * Business Description：通过prizeId获取返现金额
     *
     * @param prizeId
     * @return
     */
    @Override
    public BigDecimal getReturnMoneyByPrizeId(long prizeId) {
        return balanceLogMapper.getReturnMoneyByPrizeId(prizeId);
    }
}
